package com.gupaoedu.vip.pattern.singleton.lazy;

/**
 * Created by Administrator on 2018/3/18.
 */
public class LazyOne {

    private static LazyOne lazyOne = null;

    /**
     * 线程不安全
     * @return
     */

    public static LazyOne getInstance(){
        if(null == lazyOne){
            lazyOne = new LazyOne();
        }
        return lazyOne;
    }
}
